﻿using System;
using System.Collections.Generic;

namespace SharpSqlAnalyzer.nodes.hive
{
	// Token: 0x0200040E RID: 1038
	public class THiveFromQuerySqlNode : TParseTreeNode
	{
		// Token: 0x06002840 RID: 10304 RVA: 0x0033C645 File Offset: 0x0033A845
		public override void init(object arg1)
		{
			this.fromTableList = (TFromTableList)arg1;
		}

		// Token: 0x17000923 RID: 2339
		// (get) Token: 0x06002841 RID: 10305 RVA: 0x0033C653 File Offset: 0x0033A853
		public virtual List<TParseTreeNode> HiveBodyList
		{
			get
			{
				return this.hiveBodyList;
			}
		}

		// Token: 0x17000924 RID: 2340
		// (get) Token: 0x06002842 RID: 10306 RVA: 0x0033C65B File Offset: 0x0033A85B
		public virtual TFromTableList FromTableList
		{
			get
			{
				return this.fromTableList;
			}
		}

		// Token: 0x06002843 RID: 10307 RVA: 0x0033C663 File Offset: 0x0033A863
		public override void init(object arg1, object arg2)
		{
			this.init(arg1);
			this.hiveBodyList = (List<TParseTreeNode>)arg2;
		}

		// Token: 0x06002844 RID: 10308 RVA: 0x0033C678 File Offset: 0x0033A878
		public virtual TSelectSqlNode convertToSelect()
		{
			if (this.hiveBodyList.Count > 1)
			{
				return null;
			}
			if (!(this.hiveBodyList[0] is TSelectSqlNode))
			{
				return null;
			}
			TSelectSqlNode tselectSqlNode = (TSelectSqlNode)this.hiveBodyList[0];
			tselectSqlNode.FromTableList = this.FromTableList;
			tselectSqlNode.startToken = base.startToken;
			return tselectSqlNode;
		}

		// Token: 0x04001E41 RID: 7745
		private List<TParseTreeNode> hiveBodyList;

		// Token: 0x04001E42 RID: 7746
		private TFromTableList fromTableList;
	}
}
